const {
	$U_UserInfo,
} = require('@utils/storage')

module.exports = {

	isLogin(state, getters) {
		state.userInfo = state.userInfo || $U_UserInfo()
		return state.userInfo
	},

	isAdmin(state, getters) {
		return $U_UserInfo()
	},

}